package com.solution.admin.product.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.product.entity.ProductPropertyRelaEntity;
import com.solution.common.dao.BaseDao;
import com.solution.common.page.PageBean;
import com.solution.common.page.PageParam;

/**
 * 商品属性关联DAO接口
 * @author xu_cc
 * @date 2017-08-31 23:33:40
 */
public interface ProductPropertyRelaDao extends BaseDao<ProductPropertyRelaEntity> {
	
	/**
	 * 保存商品属性关联
	 * @param ebProductPropertyRelaEntity
	 * @return
	 * @author xu_cc
	 * @date 2017-08-31 23:33:40
	 */
	public long saveProductPropertyRela(ProductPropertyRelaEntity ebProductPropertyRelaEntity);

	/**
	 * 删除商品属性关联角色
	 * @param id
	 * @return
	 * @author xu_cc
	 * @date 2017-08-31 23:33:40
	 */
	public int deleteProductPropertyRelaById(Long id);
	
	/**
	 * 根据商品属性关联类型获取商品属性关联
	 * @param param
	 * @return
	 * @author xu_cc
	 * @date 2017-08-31 23:33:40
	 */
	public List<ProductPropertyRelaEntity> listProductPropertyRela(Long productId);
}
